package com.sy.service.Impl;

import com.sy.entity.UserPermit;
import com.sy.repository.UserPermitRepository;
import com.sy.service.UserPermitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zbbstart
 * @date 2021/2/2 - 19:21
 */
@Service
public class UserPermitServiceImpl implements UserPermitService {
    @Autowired
    private UserPermitRepository userPermitRepository;
    @Override
    public void insertUserPermit(UserPermit userPermit) {
        userPermitRepository.save(userPermit);
    }

    @Override
    public void deleteUserPermit(Integer userId) {
        userPermitRepository.deleteById(userId);
    }

}
